﻿

using Godot;

public class PlayerStateIdle(Player player, StateMachine stateMachine, AnimatedSprite3D animation3D) 
	: PlayerStateGround(player, stateMachine, animation3D)
{
	public override void Enter()
	{
		base.Enter();
		animation.Play(GameConstants.ANIM_IDLE);
	}

	public override void Process(double delta)
	{
		if (player.direction != Vector2.Zero)
		{
			stateMachine.SwitchState(player.moveState);
		}
	}
}